/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.dao;

import com.nozturn.throne.entity.AccessToken;
import com.nozturn.throne.entity.OAuthInfoDTO;

public interface AccessTokenDao {

    AccessToken createAccessToken(final AccessToken accessToken);

    int updateAccessToken(final AccessToken accessToken);

    int deleteAccessToken(final String accessToken);

    AccessToken findOne(final Long pk);

    AccessToken findByAccessToken(final String accessToken);
    
    OAuthInfoDTO findAllByAccessToken(final String accessToken);

}
